package org.yuangu.privacyfinance.domain.model;

import org.yuangu.privacyfinance.activities.adapter.IdProvider;

import androidx.room.PrimaryKey;

/**
 * 数据库实体类的父类
 */
public abstract class AbstractEntity implements IdProvider {
    @PrimaryKey(autoGenerate = true)
    private Long id;

    @Override
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
